package com.aggregate.pay.swiftpass.support.client;

import com.aggregate.pay.swiftpass.bean.RefundData;
import com.aggregate.pay.swiftpass.bean.RefundResult;
import com.aggregate.pay.swiftpass.support.AbstractClient;
import com.aggregate.pay.swiftpass.support.Merch;

/**
 * 申请退款API
 * @author Moyq5
 * @date 2019年12月20日
 */
public class Refund extends AbstractClient<RefundData, RefundResult> {

	public Refund(Merch merch) {
		super(merch);
	}

	@Override
	protected Class<RefundResult> getResultClass() {
		return RefundResult.class;
	}

	@Override
	public RefundResult execute(RefundData data) {
		data.setService("unified.trade.refund");
		return super.execute(data);
	}

}
